dc4f0c3570609c0d20db6712e4c2697c5eeac1e4,src/main/java/io/usethesource/capsule/experimental/multimap/TrieSetMultimap_HHAMT_Interlinked.java,BitmapIndexedSetMultimapNode,copyAndMigrateFromCollectionToSingleton,#AtomicReference#number#K#V#,2402

Before Change



      // generally: from 11 to 10
      // here: set both bits individually
      long updatedBitmap = bitmap();
      updatedBitmap ^= (doubledBitpos);
      updatedBitmap |= (doubledBitpos << 1);

After Change


      System.arraycopy(src, idxNew, dst, idxNew + 2, idxOld - idxNew);
      System.arraycopy(src, idxOld + 2, dst, idxOld + 2, src.length - idxOld - 2);

      long updatedBitmap = setBitPattern(bitmap(), doubledBitpos, PATTERN_DATA_SINGLETON);
      return nodeOf(mutator, updatedBitmap, dst);
    }